package com.secxiot.provider.user.dao;

import com.secxiot.provider.user.entity.DeptManager;
import com.secxiot.provider.user.entity.DeptManagerExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeptManagerDao {
    int countByExample(DeptManagerExample example);

    int deleteByExample(DeptManagerExample example);

    int deleteByPrimaryKey(Long id);

    int insert(DeptManager record);

    int insertSelective(DeptManager record);

    List<DeptManager> selectByExample(DeptManagerExample example);

    DeptManager selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") DeptManager record, @Param("example") DeptManagerExample example);

    int updateByExample(@Param("record") DeptManager record, @Param("example") DeptManagerExample example);

    int updateByPrimaryKeySelective(DeptManager record);

    int updateByPrimaryKey(DeptManager record);

    /**
     * 根据id查询管理者部门
     * @param id
     * @return
     */
    DeptManager selectDeptManagerById(Long id);
}